﻿using System.Collections;
using System.Collections.Generic;
using Unity.Entities;
using UnityEngine;

public class ECS1 : ComponentSystem {
    float deltaTime;
    protected override void OnUpdate() {
        deltaTime = Time.deltaTime;
        foreach (var item in GetEntities<ECSGroup1>()) {
            item.tra.position = Quaternion.AngleAxis(deltaTime * 30, Vector3.up) * item.tra.position;
        }
    }
}

public struct ECSGroup1 {
    public Transform tra;
}